package com.ruoyi.etp.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.etp.mapper.EtpCustomerServiceStatsMapper;
import com.ruoyi.etp.domain.EtpCustomerServiceStats;
import com.ruoyi.etp.service.IEtpCustomerServiceStatsService;

/**
 * 客户列Service业务层处理
 * 
 * @author xmj
 * @date 2025-09-12
 */
@Service
public class EtpCustomerServiceStatsServiceImpl implements IEtpCustomerServiceStatsService 
{
    @Autowired
    private EtpCustomerServiceStatsMapper etpCustomerServiceStatsMapper;

    /**
     * 查询客户列
     * 
     * @param id 客户列主键
     * @return 客户列
     */
    @Override
    public EtpCustomerServiceStats selectEtpCustomerServiceStatsById(Long id)
    {
        return etpCustomerServiceStatsMapper.selectEtpCustomerServiceStatsById(id);
    }

    /**
     * 查询客户列列表
     * 
     * @param etpCustomerServiceStats 客户列
     * @return 客户列
     */
    @Override
    public List<EtpCustomerServiceStats> selectEtpCustomerServiceStatsList(EtpCustomerServiceStats etpCustomerServiceStats)
    {
        return etpCustomerServiceStatsMapper.selectEtpCustomerServiceStatsList(etpCustomerServiceStats);
    }

    /**
     * 新增客户列
     * 
     * @param etpCustomerServiceStats 客户列
     * @return 结果
     */
    @Override
    public int insertEtpCustomerServiceStats(EtpCustomerServiceStats etpCustomerServiceStats)
    {
        return etpCustomerServiceStatsMapper.insertEtpCustomerServiceStats(etpCustomerServiceStats);
    }

    /**
     * 修改客户列
     * 
     * @param etpCustomerServiceStats 客户列
     * @return 结果
     */
    @Override
    public int updateEtpCustomerServiceStats(EtpCustomerServiceStats etpCustomerServiceStats)
    {
        etpCustomerServiceStats.setUpdateTime(DateUtils.getNowDate());
        return etpCustomerServiceStatsMapper.updateEtpCustomerServiceStats(etpCustomerServiceStats);
    }

    /**
     * 批量删除客户列
     * 
     * @param ids 需要删除的客户列主键
     * @return 结果
     */
    @Override
    public int deleteEtpCustomerServiceStatsByIds(Long[] ids)
    {
        return etpCustomerServiceStatsMapper.deleteEtpCustomerServiceStatsByIds(ids);
    }

    /**
     * 删除客户列信息
     * 
     * @param id 客户列主键
     * @return 结果
     */
    @Override
    public int deleteEtpCustomerServiceStatsById(Long id)
    {
        return etpCustomerServiceStatsMapper.deleteEtpCustomerServiceStatsById(id);
    }
}
